package com.ywx.yypicturebackend.constant;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public interface FileConstant {

    //1M
    long ONE_M = 1024*1024;

    //文件上传大小限制
    long MAX_FILE_SIZE = 5;

    //允许上传的文件后缀
    List<String> ALLOW_FORMAT_LIST = Arrays.asList("jpeg","jpg","png","webp");

    //webp后缀
    String PIC_WEBP_SUFFIX = ".webp";

    //允许的图片类型-ContentType
    List<String> ALLOW_CONTENT_TYPES = Arrays.asList("image/jpeg", "image/jpg", "image/png", "image/webp");


    // region 文件上传路径

    //公共图库路径
    String PUBLIC_PATH = "public/";

    //空间图库路径
    String SPACE_PATH = "space/";



    //endregion
}
